import React from 'react';
import { render } from 'react-dom';

let arr = ["hahaha", "lalala", 333, 444];

let oDiv = React.createElement(
    'div',
    { id: 'box' },
    React.createElement(
        'ul',
        null,
        arr.map(item => React.createElement(
            'li',
            null,
            item
        ))
    )
);

render(oDiv, document.getElementById('app'), () => {
    console.log("渲染成功");
});
